import 'package:flutter/material.dart';

class PageAbout extends StatelessWidget {
  const PageAbout({super.key, required this.data_from_caller});

  final String data_from_caller;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(data_from_caller),
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Text(
            '关于我',
            style: TextStyle(fontSize: 30),
          ),
          Text('email: guo@gmail.com'),
          Text('site: https://about.me'),
          TextButton(
              onPressed: () {
                Navigator.pop(context); // 返回上一个页面
              },
              child: Text('返回主页'))
        ],
      ),
    );
  }
}
